import Vue from 'vue';
import Router from 'vue-router';

// 所有路由使用路由懒加载 优化性能
const Index = (reslove) => {
  import('views/index/index').then((module) => {
    reslove(module)
  })
}
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },{
      path: '/singer',
      name: 'index',
      component: Index
    }
  ]
})
